home *** CD-ROM | disk | FTP | other *** search
- XRef-Tools/ParseXRef XRef-Tools/ParseXRef
-
- $VER: parsexref.doc 1.6 (03.09.94)
-
- NAME
- ParseXRef - parse the specified xreffiles from xref.library and prints it
- to stdout
-
- TEMPLATE
- STRING/A,CATEGORY,FILE/K,LIMIT/K/N,FORMAT/K,NOPATTERN/S,NOCASE/S
-
- FORMAT
- ParseXRef [STRING] string [FILE xreffile] [[CATEGORY] category]
- [LIMIT number] [FORMAT format-string] [NOPATTERN] [NOCASE]
-
- FUNCTION
- parses the specified xreffiles (CATEGORY or FILE argument) for a given
- string/pattern. If no file or category is given it parses all xreffile,
- which are actually loaded from the xref.library.If a category is specified
- only such xreffiles are parsed, which match the category.If a file is
- given only the file will parsed.If you turn the NOPATTERN switch on, the
- string you passed via STRING argument is interpreted as a normal string
- without any patternmatching tokens.It is passed to a normal string compare
- function strcmp() or Stricmp(), otherwise to MatchPattern() or
- MatchPatternNoCase().Normally it is case-sensetive, but if you turn the
- NOCASE switch on it isn't.
-
- INPUTS
- STRING (STRING) - string/pattern to parse for
-
- FILE (STRING) - file for the parse
-
- CATEGORY (STRING) - category for the parse (parse all files with this
- category) . Can be a pattern !
-
- LIMIT (LONG) - maximal number of matching entries
-
- FORMAT (STRING) - format-string for the output to stdout following format
- characters are supported after a '%' character :
- %T - name of the XRefEntry type (e.g."AmigaGuide Node" or "struct" ..)
- %P - global path for the entry
- %F - file with a relative path for the entry
- %N - name of the file
- %X - XRefEntry name
- %L - line number in the file for the XRefEntry
- %G - AmigaGuide nodename
- default template : "%T %X found !\nIn File : %F , Line : %L\n"
-
- NOPATTERN (BOOL) - indicates, that the entries are compares with strcmp
- functions , instead of using MatchPattern()
-
- NOCASE (BOOL) - indicates, that case-insensetive compare should used
-
- SEE ALSO
- AGuideXRefV37, AGuideXRefV39, MakeXRef, LoadXRef, ExpungeXRef,
- xref.library/ParseXRef(), dos.library/MatchPattern()
-
- COPYRIGHT
- (C) by Stefan Ruppert 1994
-
- HISTORY
- ParseXRef 1.6 (3.9.94) :
- - changed some tag names
-
- ParseXRef 1.5 (6.7.94) :
- - changed to new parsehook
-
- ParseXRef 1.4 (28.5.94) :
- - output-template added
-
- ParseXRef 1.3 (18.5.94) :
- - control-c support added
- - first beta release
-
-